package Vo;

import annotation.fields;
import annotation.table;

@table(value = "biji")
public class NoteVo {
    @fields(colounmName = "title")
    private String title;
    @fields(colounmName = "content")
    private String content;
    @fields(colounmName = "type")
    private String type;
    @fields(colounmName = "usename")
    private String usename;
    @fields(colounmName = "favourite")
    private Integer favourite;
    @fields(colounmName = "likes")
    private Integer likes;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUsename() {
        return usename;
    }

    public void setUsename(String usename) {
        this.usename = usename;
    }

    public Integer getFavourite() {
        return favourite;
    }

    public void setFavourite(Integer favourite) {
        this.favourite = favourite;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public NoteVo() {
    }

    public NoteVo(String title, String content, String type, String usename, Integer favourite, Integer likes) {
        this.title = title;
        this.content = content;
        this.type = type;
        this.usename = usename;
        this.favourite = favourite;
        this.likes = likes;
    }

    @Override
    public String toString() {
        return "NoteVo{" +
                "title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", type='" + type + '\'' +
                ", usename='" + usename + '\'' +
                ", favourite=" + favourite +
                ", likes=" + likes +
                '}';
    }
}
